package com.qtt.app.mapper;

import com.qtt.app.entity.AppCoupon;
import com.qtt.app.entity.ReturnInfo.ReturnCoupon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppCouponMapper {
    int deleteByPrimaryKey(Integer couponId);

    int insert(AppCoupon record);

    int insertSelective(AppCoupon record);

    AppCoupon selectByPrimaryKey(Integer couponId);

    int updateByPrimaryKeySelective(AppCoupon record);

    int updateByPrimaryKey(AppCoupon record);

    List<ReturnCoupon> getUserCoupon(@Param("userId") Long userId);
}